<ion-view>
  <ion-header-bar class="bar bar-header header">
    <button on-touch="goback()" class="button return-btn">返回</button>
    <h1 class="title" ng-click="backToTop()">受邀对象</h1>
    <button class="button hd-red-btn" on-touch="finishSelect()">完成</button>
  </ion-header-bar>
  <ion-content class="gray-bg" has-bouncing="true">
      <div class="list flow-find-warp">
        <label class="item item-input">
          <i class="icon flow-find-warp-icon"></i>
          <input type="text" class="flow-find-text" ng-model="member.searchKey" placeholder="搜索好友">
        </label>
      </div>
    <!--会员搜索列表-->
    <div ng-if=showSearch>
      <div class="list">
        <div class="item item-checkbox invite-user-item" ng-repeat="member in memberListByKey">
          <label class="checkbox" ng-click="selectMember(member.member_id)">
            <em class="invite-user-checkbox" ng-class="{'active':member.selected}">
              <input type="checkbox"/>
            </em>
          </label>
          <div class="item item-avatar-left invite-user-item-con">
            <div class="invite-user-item-hd">
              <em class="invite-user-item-pic">
                <img ng-src="{{picPath}}{{member.member_img_url}}" alt=""/>
                <i class="invite-user-item-v"><img ng-src="{{picPath}}{{member.mr_img_url}}" alt=""/></i>
              </em>
            </div>
            {{member.member_name}}
          </div>
        </div>
    </div>
    </div>
    <!----会员列表开始--->
      <div ng-if="!showSearch">
      <div class="list">
        <div class="item item-divider invite-user-item-tit" ng-if="memberList.attendMemberList&&memberList.attendMemberList.length>0">我关注的人</div>
        <div class="item item-checkbox invite-user-item" ng-repeat="member in memberList.attendMemberList">
          <label class="checkbox" ng-click="selectMember(member.member_id)">
            <em class="invite-user-checkbox" ng-class="{'active':member.selected}">
              <input type="checkbox"/>
            </em>
          </label>
          <div class="item item-avatar-left invite-user-item-con">
            <div class="invite-user-item-hd">
              <em class="invite-user-item-pic">
                <img ng-src="{{picPath}}{{member.member_img_url}}" alt=""/>
                <i class="invite-user-item-v"><img ng-src="{{picPath}}{{member.mr_img_url}}" alt=""/></i>
              </em>
            </div>
           {{member.member_name}}
          </div>
        </div>
        <div class="item item-divider invite-user-item-tit" ng-if="memberList.beAttendMemberList&&memberList.beAttendMemberList.length>0">关注我的人</div>
        <div class="item item-checkbox invite-user-item" ng-repeat="member in memberList.beAttendMemberList">
          <label class="checkbox" ng-click="selectMember(member.member_id)">
            <em class="invite-user-checkbox" ng-class="{'active':member.selected}">
              <input type="checkbox"/>
            </em>
          </label>
          <div class="item item-avatar-left invite-user-item-con">
            <div class="invite-user-item-hd">
              <em class="invite-user-item-pic">
                <img ng-src="{{picPath}}{{member.member_img_url}}" alt=""/>
                <i class="invite-user-item-v"><img ng-src="{{picPath}}{{member.mr_img_url}}" alt=""/></i>
              </em>
            </div>
            {{member.member_name}}
          </div>
        </div>
        <!---字母排序开始-->
        <div data-ng-repeat="(letter, tempMemberList) in memberList.wordIndexResultMap">
          <div class="item item-divider invite-user-item-tit" id="index_{{letter}}" ng-bind="letter"></div>
          <div class="item item-checkbox invite-user-item" ng-repeat="member in tempMemberList">
            <label class="checkbox" ng-click="selectMember(member.member_id)">
              <em class="invite-user-checkbox" ng-class="{'active':member.selected}">
                <input type="checkbox"/>
              </em>
            </label>
            <div class="item item-avatar-left invite-user-item-con">
              <div class="invite-user-item-hd">
                <em class="invite-user-item-pic">
                  <img ng-src="{{picPath}}{{member.member_img_url}}" alt=""/>
                  <i class="invite-user-item-v"><img ng-src="{{picPath}}{{member.mr_img_url}}" alt=""/></i>
                </em>
              </div>
              {{member.member_name}}
            </div>
          </div>
        </div>
        </div>
      </div>
    <!---会员列表结束-->
  </ion-content>
  <div class="lbs-fix-nav" style="padding-top:90px;">
    <ul>
      <li><a on-touch="backToTop()">#</a></li>
      <li><a on-touch="gotoList('index_A')">A</a></li>
      <li><a on-touch="gotoList('index_B')">B</a></li>
      <li><a on-touch="gotoList('index_C')">C</a></li>
      <li><a on-touch="gotoList('index_D')">D</a></li>
      <li><a on-touch="gotoList('index_E')">E</a></li>
      <li><a on-touch="gotoList('index_F')">F</a></li>
      <li><a on-touch="gotoList('index_G')">G</a></li>
      <li><a on-touch="gotoList('index_H')">H</a></li>
      <li><a on-touch="gotoList('index_I')">I</a></li>
      <li><a on-touch="gotoList('index_J')">J</a></li>
      <li><a on-touch="gotoList('index_K')">K</a></li>
      <li><a on-touch="gotoList('index_L')">L</a></li>
      <li><a on-touch="gotoList('index_M')">M</a></li>
      <li><a on-touch="gotoList('index_N')">N</a></li>
      <li><a on-touch="gotoList('index_O')">O</a></li>
      <li><a on-touch="gotoList('index_P')">P</a></li>
      <li><a on-touch="gotoList('index_Q')">Q</a></li>
      <li><a on-touch="gotoList('index_R')">R</a></li>
      <li><a on-touch="gotoList('index_S')">S</a></li>
      <li><a on-touch="gotoList('index_T')">T</a></li>
      <li><a on-touch="gotoList('index_U')">U</a></li>
      <li><a on-touch="gotoList('index_V')">V</a></li>
      <li><a on-touch="gotoList('index_W')">W</a></li>
      <li><a on-touch="gotoList('index_X')">X</a></li>
      <li><a on-touch="gotoList('index_Y')">Y</a></li>
      <li><a on-touch="gotoList('index_Z')">Z</a></li>
    </ul>
  </div>
</ion-view>






